import request from '@/utils/request'

// 查询返修领料单支领版体列表
export function listRequisitionapplay(query) {
  return request({
    url: '/rr/requisitionapplay/list',
    method: 'get',
    params: query
  })
}

// 查询返修领料单支领版体详细
export function getRequisitionapplay(id) {
  return request({
    url: '/rr/requisitionapplay/' + id,
    method: 'get'
  })
}

// 新增返修领料单支领版体
export function addRequisitionapplay(data) {
  return request({
    url: '/rr/requisitionapplay',
    method: 'post',
    data: data
  })
}

// 修改返修领料单支领版体
export function updateRequisitionapplay(data) {
  return request({
    url: '/rr/requisitionapplay',
    method: 'put',
    data: data
  })
}

// 删除返修领料单支领版体
export function delRequisitionapplay(id) {
  return request({
    url: '/rr/requisitionapplay/' + id,
    method: 'delete'
  })
}
